<?php
/*
	
*/
defined('BY_JYA') or exit('Access Denied');
global $_RQ,$_AR;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
$setting=$this->plugin_setting('setting');
$return['setting'] = $setting;
if($_RQ['op']=='main'){
	if(!$_RQ['id']){
		exi('请先选择房产！','error','jy_cmshouse/index/');
	}	
	$info=pdo_get('jy_cmshouse_list',array('id'=>$_RQ['id']));
	$info['createtime']=date('Y-m-d H:m:s',$info['createtime']);
	$info['hdp']=json_decode($info['hdp'],true);
	if($info['type']==1){
			$info['type']='新房';
		}elseif($info['type']==2){
			$info['type']='二手房';
		}
	$return['info']=$info;
	$return['juli']=$_SESSION['juli'][$id];
	$return['time']=$return['juli']*2;
	
	exi($return);
	
}